#include <stdio.h>

#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"

int main(){
	lua_State *L=luaL_newstate();
	int err;

	luaL_openlibs(L);

	printf("Main program started.\n");
	err=luaL_dofile(L,"/Program Files/wmssystem/scripts/loader.lua");
	printf("\nERR:%d\n",err);
	if(err){
		printf("ERR MSG:%s\n",lua_tostring(L,-1));
		lua_pop(L,1);
	}


	lua_close(L);

	return 0;
}